<?php
class uploader_del extends SClass {

    public function process() {
    	try {
    		print (  ServiceUtils::GetFactory()->getFilesService()->deleteFile(
    			$this->getArgument('id')
    		));
    		$this->assign('message', 'ok');
    	} catch (ServiceUtils_Exception $exception) {
    		$this->assign('message', 'error');
    	}
    }

}